:root {
    --primary-blue: #1e88e5;
    --secondary-green: #43a047;
    --light-bg: #ffffff;
    --dark-bg: #f5f5f5;
    --dark-text: #333333;
    --light-text: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    width: 100%;
    min-height: 100vh;
}

header {
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.logo {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-blue);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu i {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--dark-text);
}

.hero {
    width: 100%;
    height: auto;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080?text=LA+Skyline') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-weight: 700;
    text-align: center;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    color: var(--light-text);
    text-align: center;
    max-width: 800px;
}

.hero-form-container {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.hero-offer {
    background: var(--primary-blue);
    color: white;
    padding: 2.5rem;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-offer h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-offer ul {
    list-style: none;
}

.hero-offer li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.hero-offer i {
    color: #4caf50;
}

.hero-form {
    padding: 2.5rem;
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-form input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.hero-form input.error {
    border-color: #e53935;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 0.5rem;
}

.thank-you {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 3rem;
    color: var(--secondary-green);
    margin-bottom: 1rem;
}

.thank-you h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.thank-you p {
    color: var(--light-text);
}

.services {
    padding: 5rem 4%;
    background-color: white;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-blue);
}

.carousel {
    padding: 4rem 4%;
    position: relative;
    background-color: var(--dark-bg);
}

.carousel-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark-text);
}

.carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
}

.carousel-container::-webkit-scrollbar {
    height: 5px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.carousel-item {
    min-width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}

.carousel-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.carousel-item p {
    color: var(--light-text);
    line-height: 1.6;
}

.carousel-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

footer {
    padding: 3rem 4%;
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    background-color: #263238;
    color: white;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons i {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: var(--primary-blue);
}

.dashboard {
    padding: 5rem 4%;
    background-color: var(--dark-bg);
}

.dashboard-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
}

.dashboard-tab {
    background: none;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 20px;
    transition: all 0.3s;
    color: var(--light-text);
}

.dashboard-tab.active {
    background-color: var(--primary-blue);
    color: white;
}

.dashboard-controls select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-panel {
    display: none;
}

.dashboard-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-card h3 {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.metric-change::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.positive {
    color: var(--secondary-green);
}

.positive::before {
    content: "\f062"; /* up arrow */
}

.negative {
    color: #e53935;
}

.negative::before {
    content: "\f063"; /* down arrow */
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.chart-container h3 {
    font-size: 1rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.chart {
    width: 100%;
    height: 300px;
    position: relative;
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .carousel-item {
        min-width: 250px;
        height: 180px;
    }
    
    nav {
        display: none;
    }
    
    .hero-form-container {
        flex-direction: column;
    }
    
    .hero-offer, .hero-form {
        width: 100%;
        padding: 2rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .dashboard-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
    
    .chart {
        height: 250px;
    }
}

.btn {
    padding: 0.8rem 1.2rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
    outline: none;
}

.form-input-group input.error {
    border-color: #e53935;
    background-color: rgba(229, 57, 53, 0.05);
}

.form-input-group .error-message {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    display: none;
}

.form-input-group input.error + .error-message {
    display: block;
}

.dashboard-image {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.dashboard-panel.active .dashboard-image {
    opacity: 1;
    transform: translateY(0);
}

.analytics-image {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.analytics-image:hover {
    transform: scale(1.02);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.dashboard-cta {
    margin-top: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    padding: 3rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.dashboard-panel.active .dashboard-cta {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.dashboard-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subscribe-btn {
    background-color: white;
    color: var(--primary-blue);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

.subscribe-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-disclaimer {
    font-size: 0.9rem !important;
    opacity: 0.9;
    margin-top: 1rem;
}